﻿Imports System.Linq

Namespace Aricie.DNN.Modules.LuceneSearch.UI.Controls.FieldControls
    Public Class SortableFieldSelector
        Inherits SearchFieldSelector

        Public Overrides Function GetEntitiesG() As System.Collections.Generic.IList(Of Business.FieldDefinition)
            Return Business.PortalQueryingDriver.GetCurrent().GetIndexedFields().Where(Function(f) f.DisplayAsSortable).OrderBy(Function(f) f.Id).ToList()
        End Function

    End Class
End Namespace